package com.cskaoyan.mapper;

import com.cskaoyan.bean.*;

import com.cskaoyan.bean.chenfeng.vo.StatUserVo;

import com.cskaoyan.bean.param.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author lihaoming
 * @Description
 * @Create 2022-06-25 20:48
 * @Version
 */
public interface UserMapper {
    List<User> select(@Param("username") String username, @Param("mobile") String mobile, @Param("sort") String sort, @Param("order") String order);

    User queryById(Integer id);

    void updateUserByUserName(User user);

    List<MarketAddress> addressList(@Param("userId") Integer userId, @Param("name") String name, @Param("sort") String sort, @Param("order") String order);

    List<MarketCollect> collectList(@Param("userId") Integer userId, @Param("valueId") Integer valueId, @Param("sort") String sort, @Param("order") String order);

    List<MarketFootprint> footPrintList(@Param("userId") Integer userId, @Param("goodsId") Integer goodsId, @Param("sort") String sort, @Param("order") String order);

    List<MarketSearchHistory> historyList(@Param("userId") Integer userId, @Param("keyword") String keyword, @Param("sort") String sort, @Param("order") String order);

    List<MarketFeedback> feedbackList(@Param("username") String username, @Param("id") Integer id, @Param("sort") String sort, @Param("order") String order);


    Integer selectUnRecv();

    Integer selectUnComment();

    Integer selectUnPaid();

    Integer selectUnShip();

    // 查询统计每日新增的用户数
    List<StatUserVo.RowsEntity> selectUserInGroupByDate(@Param("sort") String sort, @Param("order") String order, @Param("limit") Integer limit);

}
